<template>
	<view>
		<view class="smart-panel-title" @click="goDetailPage('container')">
			<text>1.容器</text>
		</view>
		<view class="smart-panel-h" @click="goDetailPage('view')">
			<text>view视图</text>
		</view>
		<view class="smart-panel-h" @click="goDetailPage('scroll-view')">
			<text>scroll-view视图</text>
		</view>
		<view class="smart-panel-h" @click="goDetailPage('swiper')">
			<text>swiper视图</text>
		</view>
		<view class="smart-panel-title" @click="goDetailPage('basic-content')">
			<text>2.基础内容</text>
		</view>
		<view class="smart-panel-h" @click="goDetailPage('text')">
			<text>text文本编辑</text>
		</view>
		<view class="smart-panel-h" @click="goDetailPage('icon')">
			<text>icon图标</text>
		</view>
		<view class=" smart-panel-title" @click="goDetailPage('form')">
			<text>3.表单组件</text>
		</view>
		<view class="smart-panel-h" @click="goDetailPage('buttom')">
			<text>button按钮</text>
		</view>
		<view class="smart-panel-h" @click="goDetailPage('checkbox')">
			<text>checkbox多选框</text>
		</view>
		<view class="smart-panel-h" @click="goDetailPage('label')">
			<text>label标签组件</text>
		</view>
		<view class="smart-panel-h" @click="goDetailPage('input')">
			<text>input输入框</text>
		</view>
		<view class="smart-panel-h" @click="goDetailPage('textarea')">
			<text>textarea多行文本输入框</text>
		</view>
		<view class="smart-panel-h" @click="goDetailPage('form1')">
			<text>form表单</text>
		</view>
		<view class=" smart-panel-title" @click="goDetailPage('form')">
			<text>4.跳转页面</text>
		</view>
		<view class="smart-panel-h" @click="goDetailPage('navigate')">
			<text>navigator</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			goDetailPage(e) {
				if (typeof e === 'string') {
					uni.navigateTo({
						url: '/pages/tabcompage/' + e + '/' + e
					});
				} else {
					uni.navigateTo({
						url: e.url
					})
				}
			}
		}
	}
</script>

<style>

</style>